BIN = http_decode
OBJS =  http_decode.o http.o util_debug.o
CFLAGS = -Wall -Os -g
CFLAGS += -D _GNU_SOURCE
INCLUDES = -I. -I./include
LIBS = -lm -lz

.PHONY: all


all: $(BIN)

$(BIN): $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o $@ $(LIBS)
	@echo "make $@ finished on `date`"

%.o: %.c
	$(CC) -c $< -o $@ $(CFLAGS) $(INCLUDES)

clean:
	rm -rf $(BIN) $(OBJS)
